package cn.org.xuanzp.accept.provider.impl;

import cn.org.xuanzp.accept.provider.AcceptProvider;
import cn.org.xuanzp.common.command.impl.RouteCommand;

/**
 * @Classname RouteProvider
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/9/28 23:20
 * @Created by xuanzp
 */
public class RouteProvider implements AcceptProvider<RouteCommand> {
    /***
     * 接受消息
     * @param routeCommand
     */
    @Override
    public void accept(RouteCommand routeCommand) {
        if(support(routeCommand)){

        }
    }

    /***
     * 判断是否支持
     * @param o
     * @return
     */
    @Override
    public Boolean support(Object o) {
        return o instanceof RouteCommand;
    }
}
